package com.ruoyi.cderp.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品入库对象 production_warehousing
 *
 * @author ruoyi
 * @date 2025-06-15
 */
public class ProductionWarehousing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 入库单号 */
    @Excel(name = "入库单号")
    private String warehousingNo;

    /** 生产工单ID */
    @Excel(name = "生产工单ID")
    private String orderId;

    /** 生产工单号 */
    @Excel(name = "生产工单号")
    private String orderNo;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private String warehouseId;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warehousingTime;

    /** 状态(0:待入库,1:已入库,2:已取消) */
    @Excel(name = "状态(0:待入库,1:已入库,2:已取消)")
    private Long status;

    private String cname;

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    /** 产品入库明细信息 */
    private List<ProductionWarehousingItem> productionWarehousingItemList;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setWarehousingNo(String warehousingNo)
    {
        this.warehousingNo = warehousingNo;
    }

    public String getWarehousingNo()
    {
        return warehousingNo;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setWarehouseId(String warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseId()
    {
        return warehouseId;
    }
    public void setWarehousingTime(Date warehousingTime)
    {
        this.warehousingTime = warehousingTime;
    }

    public Date getWarehousingTime()
    {
        return warehousingTime;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public List<ProductionWarehousingItem> getProductionWarehousingItemList()
    {
        return productionWarehousingItemList;
    }

    public void setProductionWarehousingItemList(List<ProductionWarehousingItem> productionWarehousingItemList)
    {
        this.productionWarehousingItemList = productionWarehousingItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warehousingNo", getWarehousingNo())
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("warehouseId", getWarehouseId())
            .append("warehousingTime", getWarehousingTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("productionWarehousingItemList", getProductionWarehousingItemList())
            .toString();
    }
}
